package com.auxgroup.smarthome.business.service;

import com.auxgroup.bridge.business.inner.vo.AppIndexPageVo;
import com.auxgroup.bridge.business.inner.vo.CurrentAppIndexPageVo;
import com.auxgroup.smarthome.business.service.inner.AppIndexPageInnerService;
import com.auxgroup.smarthome.syscode.BusinessCode;
import com.auxgroup.smarthome.web.ApiResponse;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author: laiqiuhua.
 * @Date: 2017/9/8 16:06.
 */
@Component
public class AppIndexPageInnerServiceFallback implements AppIndexPageInnerService {

    @Override
    public ApiResponse<AppIndexPageVo> saveAppIndexPage(String zipUri, String htmlUri) {
        return ApiResponse.prompt(BusinessCode.FAIL);
    }

    @Override
    public ApiResponse<AppIndexPageVo> publish(String indexPageId, String releseUser) {
        return ApiResponse.prompt(BusinessCode.FAIL);
    }

    @Override
    public ApiResponse<List<AppIndexPageVo>> findVersionHistory() {
        return ApiResponse.prompt(BusinessCode.FAIL);
    }

    @Override
    public ApiResponse<AppIndexPageVo> getlatestIndexPage() {
        return ApiResponse.prompt(BusinessCode.FAIL);
    }

    @Override
    public ApiResponse<CurrentAppIndexPageVo> getlatestIndexPageVersion() {
        return ApiResponse.prompt(BusinessCode.FAIL);
    }

}
